package com.upcode.weighing.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.upcode.weighing.base.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author alex
 * @since 2019-04-10
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class SysUser extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @JsonFormat(shape =JsonFormat.Shape.STRING )
    private Long id;//用户ID
    private String loginName;//登录名
    private String pwd;//密码
    private String salt;//盐
    private String name;//姓名
    private String email;//邮箱
    private Integer sex;//性别 1:男，0:女
    private String telephone;//手机号码
    private String avatar;//头像
    private Integer status;//状态 1 可用 0 不可用 -1: 删除
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//修改时间
    private String agencyType;//部门ID
    private String agencyId;//岗位ID
    private LocalDateTime lastUpPasswordTime;//最后一次修改密码的时间
    private Integer defaultPasswordLoginNum;//默认密码登录次数

}
